//
//  BaseViewModel.h
//  MyPhoneApp
//
//  Created by uuu9 on 16/9/7.
//  Copyright © 2016年 myApp. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^CompletionHandle)(NSError *error);

@protocol BaseViewModelDelegate <NSObject>

@optional

//获取数据
- (void)getDataFromNetCompleteHandle:(CompletionHandle)completionHandle;
//刷新
- (void)refreshDataCompletionHandle:(CompletionHandle)completionHandle;
//获取更多
- (void)getMoreDataCompletionHandle:(CompletionHandle)completionHandle;

- (void)getDataFromNetWithParam:(NSInteger)param andCompleteHandle:(CompletionHandle)completionHandle;
@end

@interface BaseViewModel : NSObject<BaseViewModelDelegate>

@property (nonatomic, strong) NSMutableArray *dataArr;

@property (nonatomic, assign) NSInteger pageNum;


@end
